﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace BO
{
    public static class Database
    {
        
        public static string CompanyConnection
        {
            get
            {
                return GlobalVar.ConnectionString;
                return ConfigurationManager.ConnectionStrings
                  ["bjyxlA"].ConnectionString;
            }
        }
    }
    [Flags]
    public enum MasterType : byte
    {
        IsLoadAll,
        IsMe
    }
    public partial class GlobalVar
    {
        public static string DatabaseName = "bjyxlA";

        public static string ConnectionString
        {
            get
            {
                //return "";
                return ConfigurationManager.ConnectionStrings[DatabaseName].ConnectionString;
            }
        }

        public const string BOAssembly = "BO";
        public const string UIAssembly = "UI";
        public const string ControlsAssembly = "UIControls";
        private static SysUser _User;
        public static SysUser User
        {
            get { return _User; }
        }




        public static string Prefix
        {
            get { 
                return ":";
                return "@"; }
        }
    }
}
